#ifndef GRAPHPIC_H
#define GRAPHPIC_H

#include <QWidget>
#include <QPainter>
#include <QStaticText>
#include <graphmodelslist.h>

class GraphPic : public QWidget
{
    Q_OBJECT
    GraphModelsList *model;
    int transx;
    int transy;
    void drawVertexes(QPainter *painter);
    void drawEdge(QPainter *painter, int i, int j);
public:
    GraphPic(GraphModelsList *_model, QWidget *parent = 0);
    ~GraphPic();
    void paintEvent(QPaintEvent *pe);
    QSize sizeHint() const;
    
signals:
    
public slots:
    
};

#endif // GRAPHPIC_H
